package main;
import java.lang.UnsupportedOperationException;

public class PrettyPrinter implements ExplorerEntity {
	public void explore(DiscussionGroup dg) {
		//nothing to do
		return;
	}

	protected void indent(Post p) {
		for (int i=0; i<p.getDepth(); i++)
			System.out.print("\t");
	}

	public void explore(Post p) {
		indent(p);
		System.out.println(p.getAuthor()+": "+p.getTitle());
	}
}
